package com.mbl.base.core.modular.task;

import org.springframework.stereotype.Component;

/**
 * 任务管理工具类
 */
@Component
public class UtilTask {
    private static TaskService taskService;
    public UtilTask(TaskService taskService){
        this.taskService = taskService;
    }

    public static void addTask(Task task){
        taskService.addTask(task);
    }

    public static void removeTask(Task task){
        taskService.removeTask(task);
    }
}
